import { request } from "@/utils/request";

const prefix = "/web/";

// 登录
export const login = (data) => {
  return request({url: prefix+"user/login",method: "post",data});
};

// 注册
export const register = (data) => {
  return request({url: prefix+"user/register",method: "post",data});
};

// 获取视频列表
export const getVideoList = (data) => {
  return request({url: prefix+"video/index_list",method: "get",data});
};

// 获取视频详情
export const getVideoDetail = (data) => {
  return request({url: prefix+"video/detail",method: "get",data});
};

// 获取公益项目列表
export const getDonationList = (data) => {
  return request({url: prefix+"donate/index",method: "get",data});
};

// 获取公益项目进展列表
export const getDonationProgressList = (data) => {
  return request({url: prefix+"donate/progress",method: "get",data});
};

// 获取公益项目详情
export const getDonationDetail = (data) => {
  return request({url: prefix+"donate/detail",method: "get",data});
};

// 获取公益项目--我的捐赠列表
export const getDonationMyOrderList = (data) => {
  return request({url: prefix+"my/order_list",method: "get",data});
};

// 我的页面
export const getMyData = (data) => {
  return request({url: prefix+"my/index",method: "get",data});
};

// 获取通用设置内容（富文本内容）
export const getCommonSetEditor = (data) => {
  return request({url: prefix+"common_set/editor",method: "get",data});
};
